home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / AIncludes / Notification.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  2.0 KB  |  74 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Notification.a
  3. ;
  4. ;    Contains:    Notification Manager interfaces
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__NOTIFICATION__') = 'UNDEFINED' THEN
  18. __NOTIFICATION__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  24.     include 'OSUtils.a'
  25.     ENDIF
  26.  
  27.  
  28.  
  29. ; typedef NMRec *                        NMRecPtr
  30.  
  31. NMRec                    RECORD 0
  32. qLink                     ds.l    1                ; offset: $0 (0)        ;  next queue entry
  33. qType                     ds.w    1                ; offset: $4 (4)        ;  queue type -- ORD(nmType) = 8
  34. nmFlags                     ds.w    1                ; offset: $6 (6)        ;  reserved
  35. nmPrivate                 ds.l    1                ; offset: $8 (8)        ;  reserved
  36. nmReserved                 ds.w    1                ; offset: $C (12)        ;  reserved
  37. nmMark                     ds.w    1                ; offset: $E (14)        ;  item to mark in Apple menu
  38. nmIcon                     ds.l    1                ; offset: $10 (16)        ;  handle to small icon
  39. nmSound                     ds.l    1                ; offset: $14 (20)        ;  handle to sound record
  40. nmStr                     ds.l    1                ; offset: $18 (24)        ;  string to appear in alert
  41. nmResp                     ds.l    1                ; offset: $1C (28)        ;  pointer to response routine
  42. nmRefCon                 ds.l    1                ; offset: $20 (32)        ;  for application use
  43. sizeof                     EQU *                    ; size:   $24 (36)
  44.                         ENDR
  45. ;
  46. ; pascal OSErr NMInstall(NMRecPtr nmReqPtr)
  47. ;
  48.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  49.         ; parameters:
  50.         ;    nmReqPtr        => A0
  51.         ; returns:
  52.         ;    OSErr           <= D0
  53.         _NMInstall:    OPWORD    $A05E
  54.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  55.         IMPORT_CFM_FUNCTION NMInstall
  56.     ENDIF
  57.  
  58. ;
  59. ; pascal OSErr NMRemove(NMRecPtr nmReqPtr)
  60. ;
  61.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  62.         ; parameters:
  63.         ;    nmReqPtr        => A0
  64.         ; returns:
  65.         ;    OSErr           <= D0
  66.         _NMRemove:    OPWORD    $A05F
  67.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  68.         IMPORT_CFM_FUNCTION NMRemove
  69.     ENDIF
  70.  
  71.  
  72.     ENDIF ; __NOTIFICATION__ 
  73.  
  74.